package com.qf.logistics.controller;

import com.qf.logistics.dto.R;
import com.qf.logistics.pojo.AdminUser;
import com.qf.logistics.service.AdminUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * created by 赵文韬 on 2022/4/1 20:50
 */
@RestController
@RequestMapping("/adminUser")
public class ForgotController {
    private AdminUserService adminUserService;
    @Autowired
    public void setAdminUserService(AdminUserService adminUserService) {
        this.adminUserService = adminUserService;
    }
    @GetMapping("/forgetPassword")
    public R getforgotadmin(){
        List<AdminUser> adminUsers = adminUserService.findByUserStatus(1L);
        return R.getR(1,"请联系超级管理员" ,adminUsers );
    }
}
